﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Data.MyDbContext
{
    public class DbContextFactory : IDbContextFactory
    {
        private WebStudioDbContext _DB = null;
        public WebStudioDbContext DB
        {
            get
            {
                if (_DB == null)
                {
                    _DB = new WebStudioDbContext();
                }
                return _DB;
            }
        }
    }
}
